package com.maixun.lib_network.entity

/**
 * 作者：Lmoumou
 * 时间：2020/7/14 09:56
 */
data class STSResultBeen(
    var accessKeyId: String = "", // STS.NHTCgDoYA2wAFV5Y6xbEfbE6r
    var accessKeySecret: String = "", // 6P3d8zbLwoxoTKQRisjora68wEyWFLMJEKuFSXzvYGqt
    var bucket: String = "", // ue-online_test-private
    var expiration: String = "", // 2019-06-04T01:37:53Z
    var prefix: String = "", // credentials
    var requestId: String = "", // BE493FC2-4F2A-48EC-AB7F-168BE06BA429
    var securityToken: String = "" // CAISyQJ1q6Ft5B2yfSjIr4
) {
    var endpoint: String = "" // oss-cn-beijing
        get() {
            return "$field.aliyuncs.com"
        }

    /**
     * 是否失效
     *
     * @return ture->失效 false->未失效
     * */
    fun isInvalid(): Boolean {
        return false
    }
}